from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

wd = webdriver.Chrome(service=Service(f".\chromedriver_win136.exe"))
wd.get("https://www.bilibili.com")

time.sleep(10)
message_button = wd.find_element(By.CSS_SELECTOR, ".right-entry__outside:nth-child(2)")
message_button.click()

time.sleep(10)
